<template>
<div class="use-browser-location">
  Input and hash will be changed:
  <input type="text" v-model="location.search" />
</div>
</template>
<script setup lang="ts">
import {useBrowserLocation} from "@vueuse/core";

defineOptions({
  name: "UseBrowserLocation"
})
const location = useBrowserLocation()
</script>
